﻿using Basic.HrRemoteModel.Emp;
using Basic.HrRemoteModel.Emp.Model;
using WeDonekRpc.Client.Attr;

namespace Basic.FormExtendService.lmpl
{
    [ClassLifetimeAttr(ClassLifetimeType.SingleInstance)]
    internal class EmpService : IEmpService
    {
        public long[] FindEmpId ( EmpFindParam param )
        {
            return new FindEmpId
            {
                Param = param
            }.Send();
        }
        public EmpBase GetBase ( long empId )
        {
            return new GetEmpBase
            {
                Id = empId
            }.Send();
        }

        public Dictionary<long, string> GetEmpName ( long[] ids )
        {
            return new GetEmpNames
            {
                Ids = ids
            }.Send();
        }
    }
}
